<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <link href="css/chinalife.css" rel="stylesheet" type="text/css">
    <title>中国人寿</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script language="JavaScript" >
        function main(){
            if(form1.user_name.value == ""){
                alert("请输入用户名");
                return false;
            }
            else if(form1.user_pwd.value == ""){
                alert("请输入密码");
                form1.user_pwd.focus();
                return false;
            }
            return true;
        }
        function onKeyUP(){
            if(event.keyCode!=13) return;

            if(form1.user_name.value.length>5){
                form1.user_pwd.value="";
                form1.user_pwd.focus();
            }
        }
        function onKeyPP(){
            if(event.keyCode!=13) return;
            if(form1.user_pwd.value.length>5){
                form1.checkcode.focus();
            }
        }
        function onKeyCD(){
            if(event.keyCode!=13) return;
            if(form1.checkcode.value.length>3){
                form1.submit.focus();
            }
        }
        function init(){
            form1.user_name.focus();
        }
    </script>

    <style type="text/css">
        <!--
        .btn {border-top: #CDCDCD 1px solid; border-left: #CDCDCD 1px solid;border-right: #737373 1px solid; border-bottom: #737373 1px solid; cursor: hand; background: #B4B4B4; height: 18px; color:#000000 ; padding-top: 1px; letter-spacing: 0px; padding-right: 0px; padding-left: 0px}
        .bg_tab {
            background-image: url(../images/login1.png);
            background-repeat: no-repeat;
            background-position: 280px 100px;
            background-size: 600px 400px;
        }
        -->
    </style>
</head>

<body leftmargin="100" topmargin="0" marginwidth="0" marginheight="0">

<form name="form1" method="post" action="/gxdms/public/login.jsp" onSubmit="return main();">

    <table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0" leftmargin=500>
        <tr>
            <td align="middle" valign="middle" class="bg_tab" >
                <table width="778" border="0" cellpadding="0" cellspacing="0" leftmargin=50 >
                    <tr>
                        <td colspan="3" height="260">　</td>
                    </tr>
                    <tr>
                        <td width="126" align="right" > 用户名：</td>
                        <td width="200">
                            <input name="user_name" type="text" class=text value="" size=15 maxlength="20" onKeyUp="onKeyUP();">
                        </td>
                        <td  width="326"  colspan="2" height="30" align="center">
                    </tr>
                    <tr>
                        <td width="126" align="right"> 密码：</td>
                        <td width="200">
                            <input name="user_pwd" type="password" class=text value="" size=15 maxlength="20" onKeyUp="onKeyPP();">
                        </td>
                        <td  width="326"  colspan="2" height="30" align="center">
                    </tr>
                    <tr>
                        <td width="126" align="right"> 验证码：</td>
                        <td width="200" >
                            <input name="checkcode" class=text value="" size=15 maxlength="20" onKeyUp="onKeyCD();">
                            <img class="checkimage" src="../CheckImage" >
                        </td>
                    </tr >
                    <tr valign="bottom">
                        <td  width="326"  colspan="2" height="30" align="center">
                            <INPUT name="submit" TYPE="submit" class=btn value="登   录">
                        </td>
                        <td></td>
                    </tr>
                    <td colspan="3">
                    </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>
</body>
</html>